package modulemgr

var name = "modulemgr"

type IModuleManager interface {
	RegisterModule(name string, module IModule) error
	GetModule(name string) IModule
	Init() (bool, error)
	RunAll() (bool, error)
	StopAll() (bool, error)
}

// IModule 模块
type IModule interface {
	Init(mm IModuleManager) (bool, error)
	Run(mm IModuleManager) (bool, error)
}
